Append #nfsw when the AP sensitive property is true.

various-fixes
Alain St-Denis 2023-02-25 11:05:29 -05:00
rodzic 654a8e4396
commit 1ca67c987e
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -869,6 +869,11 @@ class Note(Object, RawContentMixin):
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:
"""
Populate tags to the object.tag list.