|
|
@ -168,9 +168,16 @@ class Networks(object): |
|
|
|
# If you pass a NetworkData object, we get the proper network |
|
|
|
# If you pass a NetworkData object, we get the proper network |
|
|
|
network = reply_to.network |
|
|
|
network = reply_to.network |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
results = [] |
|
|
|
for shortcut in self._targets(network): |
|
|
|
for shortcut in self._targets(network): |
|
|
|
self.networks[shortcut].update(status, reply_to) |
|
|
|
results.append(self.networks[shortcut].update(status, reply_to)) |
|
|
|
return None |
|
|
|
return results |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def repost(self, message): |
|
|
|
|
|
|
|
"""Repost a message in the user's timeline. The network used is |
|
|
|
|
|
|
|
the same in the message.""" |
|
|
|
|
|
|
|
self.networks[message.network].repost(message) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
def delete_message(self, message, network=None): |
|
|
|
def delete_message(self, message, network=None): |
|
|
|
"""Delete an update. Message can be a NetworkData object, in which |
|
|
|
"""Delete an update. Message can be a NetworkData object, in which |
|
|
@ -189,7 +196,7 @@ class Networks(object): |
|
|
|
|
|
|
|
|
|
|
|
data = self.networks[network].message(message_id) |
|
|
|
data = self.networks[network].message(message_id) |
|
|
|
data.network = network |
|
|
|
data.network = network |
|
|
|
return data |
|
|
|
return data |
|
|
|
|
|
|
|
|
|
|
|
def replies(self, network=None): |
|
|
|
def replies(self, network=None): |
|
|
|
"""Return a list of NetworkData objects for the replies for the user |
|
|
|
"""Return a list of NetworkData objects for the replies for the user |
|
|
|