kopia lustrzana https://gitlab.com/marnanel/chapeau
"mentions" property
rodzic
08a1de4857
commit
6b62ee8057
|
@ -32,3 +32,11 @@ class Item(thing.Thing):
|
|||
@property
|
||||
def text(self):
|
||||
return self['content']
|
||||
|
||||
@property
|
||||
def mentions(self):
|
||||
from django_kepi.models.mention import Mention
|
||||
|
||||
logger.info('Finding Mentions for %s', self)
|
||||
return [x.to_actor for x in
|
||||
Mention.objects.filter(from_status=self)]
|
||||
|
|
Ładowanie…
Reference in New Issue