diff --git a/app/logical/sites/definitions/threads.yml b/app/logical/sites/definitions/threads.yml new file mode 100644 index 0000000..8a8c53b --- /dev/null +++ b/app/logical/sites/definitions/threads.yml @@ -0,0 +1,9 @@ +type: SimpleDefinition +enum_value: threads +display_name: Threads +homepage: https://threads.net +gallery_templates: + - threads.net/@{site_artist_identifier} + - threads.net/{site_artist_identifier} +username_identifier_regex: "[a-zA-Z0-9_.]{1,30}" +submission_template: https://www.threads.net/@{site_artist_identifier}/post/{site_submission_identifier} diff --git a/app/models/artist_url.rb b/app/models/artist_url.rb index fc35695..da30511 100644 --- a/app/models/artist_url.rb +++ b/app/models/artist_url.rb @@ -34,6 +34,7 @@ def initialize(url_identifier, site_type) buzzly furrystation toyhouse ychart manual trello itaku artfol cohost inkblot bluesky omorashi + threads ].map.with_index { |v, index| [v, index] }.to_h def self.search(params) diff --git a/public/icons.png b/public/icons.png index 97b62df..e2d7544 100644 Binary files a/public/icons.png and b/public/icons.png differ diff --git a/public/icons/52-threads.png b/public/icons/52-threads.png new file mode 100644 index 0000000..4264034 Binary files /dev/null and b/public/icons/52-threads.png differ