Earlopain
b058077cf0
[Misc] Add a method that returns the base url for network requests
...
This makes it easier to stub in tests.
Also add a method to the iqdb proxy to say if it is enabled or not and use it everywhere.
2024-04-26 15:57:56 +02: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
894a40ed9b
[Posts] Hide "similar on e6" link if iqdb is not set up
...
Also prevent hitting iqdb, accidentally dropped in e87d617c6f
That was previously catching the generic NotImplementedError but that
doesn't feel appropriate for this.
2023-06-13 21:46:18 +02:00
Earlopain
d0cedd1efe
[IQDB] Allow POST requests without authorization
...
The only reason this is POST is because you can't use GET for file uploads.
There is no need to check the authenticity token on this endpoint.
Closes #509
2023-05-07 15:08:10 +02:00
Earlopain
7ed3047621
[IQDB] Expose the similarity cutoff in the UI
2023-05-07 14:48:58 +02:00
Earlopain
b58865149f
[IQDB] Remove xhr handling
2023-05-07 14:03:57 +02:00
Earlopain
1047a3325f
[IQDB] Fix new hash parameter not being rate limited
2023-04-24 14:46:49 +02:00
Earlopain
e87d617c6f
[IQDB] Switch to new implementation
2023-04-24 14:46:26 +02:00
Earlopain
edae5a6b77
[IQDB] Fix error in previous commit
...
Somehow these got lost along the way
2023-04-18 19:00:14 +02:00
Earlopain
ea9b8b2010
[IQDB] Allow specifying similarity cutoff
2023-04-17 23:01:45 +02:00
Earlopain
01b5f7dd14
[IQDB] Add integration for the new iqdb server
...
Use param v2=1 to use it, for now
2023-04-17 22:36:29 +02:00
Earlopain
b86c227685
[IQDB] Fix uploads with special characters in the name
...
Closes #300
2021-10-02 11:52:49 +02:00
Kira
cdf97f1a36
[IQDB] Fix opaque exception on remote server error
2020-09-11 18:17:44 -07:00
Kira
576e503add
Save progress on theme options page
2020-03-31 03:02:33 -07:00
Kira
7d02d90232
Allow file uploads and urls for image search
2019-11-28 12:27:06 -08:00
Kira
b19fb50388
Fix url access in IQDB
...
Since the app servers have direct access to the files involved but
the iqdb server doesn't, or may not, post the files to the backend.
2019-10-05 03:03:18 -07:00
Kira
b5a726b909
Fix some IQDB query stuff
...
Added blacklist inline so that you can see the results if they are
on your blacklist.
Added timeout and some minor error handling, in case the endpoint
is dead.
2019-09-28 00:43:43 -07:00
r888888888
7f85dd27f9
use image url for iqdb proxy
2018-08-29 20:56:24 -07:00
r888888888
5aae4b649f
add xhr variant detection
2018-06-23 12:09:01 -07:00
r888888888
3ba5c6fb51
refactor iqdb endpoints
2018-06-23 10:59:04 -07:00
Albert Yi
56b40a0255
add iqdb preview
2018-06-22 16:41:13 -07:00
Albert Yi
e262295cf1
support json for iqdb query actions
2018-06-20 11:53:44 -07:00
Albert Yi
56ee44dc00
fixes to iqdb queries
2018-06-20 10:00:05 -07:00
Albert Yi
ed46e575c0
support url/post_id params on iqdb queries endpoint
2018-06-19 17:06:17 -07:00
Albert Yi
9510dead9f
refactor iqdb query support
2018-06-19 14:16:12 -07:00
evazion
d8142a6c21
iqdb_queries_controller.rb: simplify show / check actions.
...
* Combine create_by_post + create_by_url. Rename to find_similar.
* Move iqdb enabled check to find_similar.
2018-04-07 18:03:01 -05:00
evazion
41a4ff15cd
posts: remove unused file path / url methods.
...
* Remove file_path_for, cropped_file_url (dead code)
* Remove complete_preview_file_url (preview_file_url now returns absolute links)
* Remove `file_name` (only used for Download link in sidebar)
2018-03-20 19:49:55 -05:00
BrokenEagle
36ef8b4db3
Initial add of IQDB standalone page
2017-12-30 00:11:08 -08:00
evazion
0ed2dafdce
/iqdb_queries: make available to anonymous users.
2017-07-06 19:18:45 -05:00
evazion
e15f955677
/iqdb_queries: support json/xml api responses.
2017-04-05 18:01:16 -05:00
evazion
c402e15cca
/iqdb_queries: support both GET and POST; add GET /posts/1/similar.
2017-04-05 18:01:16 -05:00
evazion
0974ef8bd4
iqdbs: raise exception if not configured.
2017-04-05 01:17:04 -05:00
Albert Yi
7aab50f726
remove old iqdb code
2016-12-02 13:21:56 -08:00
Albert Yi
8e5331d234
fix for iqdb queries
2016-12-02 13:11:10 -08:00
Albert Yi
73ff94e920
integrate iqdbs
2016-11-30 16:38:00 -08:00
Toks
99fb4e60ab
Fix iqdb
...
file was getting deleted before it got used
2014-11-07 02:39:15 -05:00
r888888888
7b1419c67e
fix iqdb query path error
2014-06-02 13:46:33 -07:00
r888888888
bfd1924481
fixes #2155
2014-05-15 22:14:08 -07:00
r888888888
6de67da280
* Refactor iqdb response collection
2014-05-08 16:42:16 -07:00
r888888888
9e2c664a41
fixes #2130
2014-05-05 17:59:54 -07:00