Commit Graph

545 Commits

Author SHA1 Message Date
9923b01141 Merge branch 'master' into master2 2025-02-27 05:24:25 -06:00
Cinder
0dd17474aa
[Users] Rework the profile page (#931) 2025-02-26 05:34:43 -08:00
edshot99
c5edb7fa41 Merge branch 'master' into master2 2024-12-08 05:27:58 -06:00
Cinder
f995714992
[Posts] Rewrite the thumbnail styles (#796)
Fixes #791 and #781
2024-11-18 08:38:22 -08:00
edshot99
4928747b83 add transcript support
it could be possible to load closed captions and subtitles from the transcript div via javascript, but I hate javascript so perhaps some other time.
2024-11-10 13:58:15 -06:00
edshot99
caf7d12da9 Merge branch 'master' into master2 2024-11-03 23:51:48 -06:00
edshot99
b7fee5fe2f add title support 2024-10-30 18:52:53 -05:00
Cinder
3f17beb3b8
[Users] Redesign the profile page (#734) 2024-10-28 14:20:29 -07:00
Donovan Daniels
5ef9c55c7d
[UserFeedbacks] Add deleted record count to feedback summaries (#743) 2024-09-07 14:28:07 -07:00
Cinder
1f63f4b9d5 [Blacklist] Redesign and rework the blacklist (#693) 2024-08-04 15:17:36 -07:00
Cinder
164f5b4851 [Posts] Standardize thumbnail attributes (#684)
Thumbnails used to have four different sets of data-attributes depending on how they were displayed.
2024-07-28 18:12:41 -07:00
Earlopain
d84723909c
Merge pull request #617 from DonovanDMC/normalize-tagsetpresenter-tags
[UploadPresenter] Normalize tags & strip metatags
2024-04-09 19:35:44 +02:00
Donovan Daniels
5edbb507b6
[UploadPresenter] Normalize tags & strip metatags 2024-04-05 23:29:19 -05:00
Earlopain
d5c371dccf
[Posts] Fix missing space next to tag names
Unintentionally removed in 2609990837
2024-04-03 14:45:39 +02:00
Donovan Daniels
2609990837
Convert Tag links in PostVersions & Uploads to wiki links (#622) 2024-03-03 20:43:30 +01:00
Earlopain
c111421303
[Posts] Fix day/week/month not line-breaking on the popular page
This previously had whitespace that I unintentionally removed. This also has the unintentional sideeffect
of not breaking up individual prev/scale/next links which I see as an improvement.

Remove a margin override for the first entry, this wasn't properly centered for some reason.
Still not quite there but much better now.
2024-02-28 20:13:12 +01:00
Earlopain
fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00
Earlopain
bc06f8cea2
[Misc] Fix all remaining (hopefully) issues with frozen string literals
+"" is a bit of a copout, that could be done better but very easy to do in these more complicated cases
2024-02-25 16:41:35 +01:00
Earlopain
3f57ed5c6d
[Posts] Fix popular (and more) for frozen string literals 2024-02-25 13:41:58 +01:00
Earlopain
930b4b905c
[Pools] Fix show/gallery for frozen string literals
Get rid of the presenters/post sets.
2024-02-25 11:38:55 +01:00
Earlopain
6bb4c272cc
[Gems] Bump rubocop 2023-12-03 15:36:37 +01:00
Earlopain
b4e16fa0fd
[Elasticsearch] Implement Response 2023-09-16 15:30:28 +02:00
Earlopain
056ce3e7aa
[Cleanup] Remove without_safe_mode from CurrentUser
It really did two things and was primarily intented for automated actions
so that all posts get matched regardless of rating and status.
Now there's a dedicated method to do just that
2023-09-11 18:30:25 +02:00
Earlopain
9203dcdb82
[Posts] Add a method to get tags that a post is tagged with
Better performance than the regex as well
2023-09-03 18:24:40 +02:00
Earlopain
a5db6d74f0
[Posts] Fix the navlinks being empty in certain cases
If the post is part of a set that is public ,order:X was supplied and
you aren't the owner of that set the navbar would render empty.
2023-08-31 15:46:56 +02:00
Earlopain
6885fbf62d
[Posts] Fix sequential navigator appearing for order:X 2023-08-31 08:57:55 +02:00
Earlopain
6529f69628
[Posts] Fix Quick/Recent tags not showing
Result of my inability to make changes everywhere I need to.
c9a084e0a3
Also remove artistTags which seems to have never been used.
2023-08-30 20:39:58 +02:00
Earlopain
c8d7bebd72
[QueryBuilder] Move parsing code into own class
Introduces the concept of "free" tags to account for automatically added tags.
Introduce `resolve_aliases` which can be used instead of `raw_tag_match`
2023-08-24 13:16:44 +02:00
Earlopain
8d3bb3414d
[Cleanup] Remove is_metatag?
Metatags don't appear in post versions
2023-08-20 18:27:40 +02:00
Earlopain
36eb87b084
[Cleanup] Move tag data outside of config file
Most of that is not easily configurable and requires db fields, css classes etc.
Everything in TagCategory was also pretty much incomprehensible for me
thanks to the indirection, so I moved it all inline instead.
I'll clean that up in later commits.
2023-08-18 19:08:52 +02:00
Earlopain
8ec4027d58
[Cleanup] Use actual characters instead of html entities
Converts almost all, except a few were they make sense like nbsp
2023-08-06 18:07:15 +02:00
Earlopain
e1a564f3c6
Merge pull request #528 from faucetlol/iqdb-file-extension
[Posts] Show file extension in iqdb search
2023-08-01 20:10:33 +02:00
Donovan Daniels
b339e84612
[Tickets] Profile Links & Pending Count (#518)
* [Tickets] Profile Links & Pending Count

* stuff a sock in it, rubocop

* Remove counts fixer for ticketss

* Update app/views/tickets/show.html.erb

Co-authored-by: Earlopain <earlopain+github@protonmail.com>

* Update app/views/tickets/show.html.erb

Co-authored-by: Earlopain <earlopain+github@protonmail.com>

* use standardized timestamps

* this got yeeted at some point

* Fix search links, only show pending count when >= 2

I'm imagining some confusion if it shows one pending when it is just
the one you're looking at right now

* Fix fixer? `update_column` throws a readonly error

* `for_user` is only used in fixer script

* Fix fixer script, for real

---------

Co-authored-by: Earlopain <earlopain+github@protonmail.com>
Co-authored-by: Earlopain <earlopain@protonmail.com>
2023-05-16 20:48:51 +02:00
Earlopain
162ed5c13a
[Posts] Remove unnecessary null checks
These fields or not nullable
2023-05-10 19:16:48 +02:00
Donovan Daniels
6100f8f0d0
[Posts]: Hide disabled comments info better (#507)
* [Posts]: Hide disabled comments info better

* use method, remove nullable check, remove from api

* I hate rubocop so much

* missed these two
2023-05-10 18:39:38 +02:00
Earlopain
8ba5ea2699
[Misc] Fix rubocop offense 2023-04-02 23:25:09 +02:00
Earlopain
cbc0fd3aa1
[Users] Link to replacement id searches by default
Same as the previous commit
2023-03-29 18:08:15 +02:00
Earlopain
e25878b03f
[Users] Link to flag creator id search by default
Also exposes that field in the search form
2023-03-29 18:03:34 +02:00
Earlopain
9d1d195fa2
[Cleanup] Remove a bunch of code around is_single_tag?
That method will never return true because status:deleted is getting appended.

Also remove a bunch of related_tags code.
It was either calculate_related_tags_from_post_set or related_tags_for_group.
The results from calculate_related_tags_from_post_set look good in every case,
I can't tell one over the other. This one should be more efficient, since
it doesn't have to do an extra post search.
2023-02-24 23:26:07 +01:00
faucet
ccfd76c0a5 [Posts] Show file extension in iqdb search 2023-02-13 14:19:57 +00:00
Earlopain
29c7b80f3a
[Misc] Update to fontawesome 6
It seems to be mostly backwards compatible, these changes are just what
fontawesome suggests.
2023-01-27 19:01:35 +01:00
Earlopain
df703a1c90
[Posts] Remove "captioned" css class from post previews
It's always set and serves no purpose
2022-12-25 19:52:38 +01:00
Earlopain
9a232ec448
[Posts] Remove unused thumbnail_blacklisted preview option
This adds a class that has no styling. Seems to be left over from the
blacklist hiding logic rework.
2022-12-25 19:46:50 +01:00
Earlopain
2249cb3ebb
[Cleanup] Remove joins for db post query builder
This just removes things that the elastic builder doesn't support, and comment_count
2022-12-07 18:10:08 +01:00
Earlopain
5888d8d7da
[Posts] Change the artist indicator icon 2022-11-27 16:50:47 +01:00
Earlopain
ec776aa0c9
[Cleanup] Remove duplicate Diff::LCS code
The wiki page presenter wasn't used, and other_names from wiki page versions
is also unused.
That makes the remaing two implementations functionally the same.
2022-11-26 20:19:23 +01:00
Earlopain
33dba98cf5
[Cleanup] Simplify/Remove some post set code 2022-09-30 14:23:54 +02:00
Earlopain
e830c11ae9
[Cleanup] Remove raw post index param 2022-09-29 16:10:04 +02:00
Earlopain
3dd018a36e
[Posts] Mark artist tags linked to the uploader 2022-09-17 14:04:11 +02:00
Earlopain
34bece584c
[Posts] Simplify tag list generation
There were a bunch of parameters being passed around, now there aren't.
Also gave the methods more descriptive names.
2022-09-17 13:18:33 +02:00