 
     m = new remote.api.SocialMessage plain
 
-    m.account = if isKoding()
+    m.account = unless isFeedEnabled()
       mapAccounts(accountOldId)[0]
     else
       if isIntegrationMessage m

    # we only allow name, purpose and payload to be updated
    item.payload             = data.payload

    if not isKoding() and item.typeConstant in ['privatemessage', 'bot']
      item._originalName = item._originalName or item.name
      item.name = data.purpose
      item.purpose = item.payload?.description or ''

checkFlag = require './util/checkFlag'
whoami = require './util/whoami'
kd = require 'kd'
isFeedEnabled = require './util/isFeedEnabled'
KDController = kd.Controller
MessageEventManager = require './messageeventmanager'

