kopia lustrzana https://gitlab.com/jaywink/federation
Append #nfsw when the AP sensitive property is true.
rodzic
654a8e4396
commit
1ca67c987e
|
@ -869,6 +869,11 @@ class Note(Object, RawContentMixin):
|
||||||
|
|
||||||
if getattr(self, 'target_id'): self.entity_type = 'Comment'
|
if getattr(self, 'target_id'): self.entity_type = 'Comment'
|
||||||
|
|
||||||
|
# add nsfw tag. TODO: add a client app content property for this?
|
||||||
|
# TODO: prepend with the summary property? Needs support from the client app.
|
||||||
|
if self.sensitive:
|
||||||
|
self.raw_content += ' #nsfw'
|
||||||
|
|
||||||
def add_tag_objects(self) -> None:
|
def add_tag_objects(self) -> None:
|
||||||
"""
|
"""
|
||||||
Populate tags to the object.tag list.
|
Populate tags to the object.tag list.
|
||||||
|
|
Ładowanie…
Reference in New Issue