Browse Source

Missing repost() in top level Networks

master
Julio Biason 15 years ago
parent
commit
acb740b0f0
  1. 11
      mitterlib/network/__init__.py

11
mitterlib/network/__init__.py

@ -168,9 +168,16 @@ class Networks(object):
# If you pass a NetworkData object, we get the proper network
network = reply_to.network
results = []
for shortcut in self._targets(network):
self.networks[shortcut].update(status, reply_to)
return None
results.append(self.networks[shortcut].update(status, reply_to))
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):
"""Delete an update. Message can be a NetworkData object, in which

Loading…
Cancel
Save