1
0
Fork 0

avoid naming clash is to_activity for field vs model

This commit is contained in:
Mouse Reeve 2020-11-30 14:54:45 -08:00
parent 77aead722d
commit 1ec2f20486
5 changed files with 34 additions and 44 deletions

View file

@ -89,7 +89,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
mentions = [u.remote_id for u in self.mention_users.all()]
# this is a link to the followers list:
followers = self.user.__class__._meta.get_field('followers')\
.to_activity(self.user.followers)
.field_to_activity(self.user.followers)
if self.privacy == 'public':
activity['to'] = [public]
activity['cc'] = [followers] + mentions