Implement automatic inclusion of hashtags
authorMagnus Hagander <magnus@hagander.net>
Fri, 19 Jan 2024 12:17:32 +0000 (13:17 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 19 Jan 2024 12:17:32 +0000 (13:17 +0100)
commite98663e626f51e74791f42fbd6fa36e0b04c6131
tree863bb654ef74bba7e0e3985bff3f7bb99afd6609
parent36a2034d68e577850e4d4770ce1977b7beb553ab
Implement automatic inclusion of hashtags

With the increased importance of hashtags in the Mastodon world, make
the support more efficient and useful. This adds the ability to flag a
hashtag as "auto add", in which case it will be automatically added at
the end of all posts giong out to twitter/mastodon as a result of news
posts (this was not possible at all before). Additionally, it will also
get pre-filled in on manual posts made both using the backend interface
and the mobile webapp.

To control the order of appearance of the hashtags, a sortkey field has
been added to the table as well. Existing hashtags will just be sorted
alphabetically.
docs/confreg/integrations.md
media/js/twitter.js
postgresqleu/confreg/backendforms.py
postgresqleu/confreg/backendviews.py
postgresqleu/confreg/management/commands/confreg_post_news.py
postgresqleu/confreg/migrations/0111_hashtags_auto.py [new file with mode: 0644]
postgresqleu/confreg/models.py
postgresqleu/confreg/twitter.py
template/confreg/twitter.html