SomewhatDamaged
c972f00cdc
Featured image hiding ( #24 )
...
* Featured image hiding
This makes sure the Featured Image on the front page obeys user hiding.
* Optimized
Took the `hidden=1` check out of the `WHERE` clause.
* proper anti join
Co-authored-by: liamwhite <liamwhite@users.noreply.github.com>
2020-01-26 18:04:30 -05:00
byte[]
f558e76cc8
thanks for the tip!
2020-01-23 12:32:31 -05:00
byte[]
ce534b7962
propagate cookies correctly into form values
2020-01-11 14:35:02 -05:00
byte[]
d184ee0817
copy and customize filters
2020-01-11 14:24:30 -05:00
byte[]
3ac8687c18
allow get-based reverse searching
2020-01-11 13:51:14 -05:00
byte[]
ed44160603
run formatter
2020-01-10 23:20:19 -05:00
byte[]
4ac63f9f4e
use HTML escaping in RSS template, fixes #21
2020-01-10 12:43:56 -05:00
SomewhatDamaged
035b887f53
Somewhat damaged patch 1 ( #20 )
...
* Add new route
Adding route for
`/api/v1/json/posts/:id`
* Adding route controller
Adding route for
`/api/v1/json/posts/:id`
2020-01-07 10:35:24 -05:00
SomewhatDamaged
e918375c83
Somewhat damaged patch 1 ( #19 )
...
* Fix for module placement
Correcting my own mistake when I first made these routes
* Correcting module location
* Correcting module location
* Fix
Fixes a potential crash when no posts are returned.
2020-01-07 02:02:49 -05:00
SomewhatDamaged
24b9863699
Featured image API route ( #18 )
...
* Add route
`/api/v1/json/features`
Shows current featured image
* Add route
`/api/v1/json/features`
Shows current featured image.
* Removed binding
* Moving this file to a more appropriate name.
* Correctly named and placed
Correctly named and placed to match its module name
* Updated per review
* Changed as per review
Renamed to `PhilomenaWeb.Api.Json.FeaturedController`
Moved to `lib/philomena_web/controllers/api/json/featured_controller.ex`
* Updated route
Route `/api/v1/json/images/featured` now uses `PhilomenaWeb.Api.Json.FeaturedController`
* like this
Co-authored-by: liamwhite <liamwhite@users.noreply.github.com>
2020-01-05 20:09:45 -05:00
byte[]
11e908ef14
batch tagger should resolve aliases and implications
2020-01-03 10:43:41 -05:00
SomewhatDamaged
8e39c06940
Fix for distance ( #16 )
...
* Fix for distance
Fixes the `distance` to search not being passed through to `ImageReverse.images()`
`set_scraper_cache` passes the `distance` through into `params`
`create` normalizes and inserts the result into the params passed to `ImageReverse.images()`
`normalize_dist` checks if there is a `distance` set, adds a leading 0 to it (to account for values like `.5`, which would crash `Float.parse()`), and turns it back into a well-formatted string for `ImageReverse.images()`
* Fixed space
2020-01-03 10:37:20 -05:00
byte[]
7ee6bf379f
apparently that was necessary
2020-01-02 19:00:47 -05:00
SomewhatDamaged
ae5bfe14e4
Add /forums API Endpoints ( #14 )
...
* Adding routes for /forums
Adding routes for new /forums endpoints
* New API Routes
`/forum`
`/forum/:forum_id`
* Add New API Routes
`/forums/:forum_id/topics/:topic_id/`
`/forums/:forum_id/topics/:topic_id/:post_id`
* Adds New API Routes
`/forums/:forum_id/topics`
`/forums/:forum_id/topics/:topic_id`
* Forum JSON formatter
* Updated
Correctly filters out things that should not be shown.
* Added topic JSON filter
* Added correct pagination
* Spacing and neatened
* Cleaned up
Consolidated queries and neatened up spacing.
Fixed name
* Removed unneeded aliases
* Cleaned up
Consolidated queries
Fixed spacing
Removed unneeded aliases
* Cleaned up
Spacing
* Cleaned up
spacing
* Depluralized
* Cleaned up
Removed space
* Removed extra spaces
* Removed extra spaces
* Removed extra spaces
* Removed preloads
* Cleaned up
Grouped clauses
* Consolodated further
* Cleaned up preloads
* Cleaned up
Preloads
consolidated clauses
grouped clauses
* Cleaned up
removed `id`
`locked`
* Removed topic_id
Not useful since the API client should already know it.
* More consolodation of terms
* Add total post count
* Removed unneeded variable
* Last cleanup, I swear.
2020-01-02 17:47:12 -05:00
Jeremy Tan Jie Rui
c4e6a988d4
Don't put UTF-8 in search URL ( #15 )
...
Also fix TeX-style quoting
2020-01-01 22:09:53 -05:00
byte[]
2e7937cbc3
ensure commission items are sorted by price
2020-01-01 21:36:06 -05:00
byte[]
0da19674d1
reenable async commenting
2020-01-01 12:27:20 -05:00
byte[]
7000be9865
add parameter recoder to api tag controller
2019-12-31 23:22:35 -05:00
byte[]
b9ad5643dc
stop generating enormous gif thumbnails for videos
2019-12-31 23:11:23 -05:00
SomewhatDamaged
9b22d2719a
Adding /api/v1/json/comment/:id endpoint ( #13 )
...
* Add `/api/v1/json/comment/:id` endpoint
* Add controller for `/api/v1/json/comment/:id`
Add controller for `/api/v1/json/comment/:id` endpoint
* Fixes permissions
Now will show `403 forbidden` if a comment on a deleted image is requested.
* Fixed endpoint schema
Now conforms to endpoint schema
* Permission adjustment
Will prevent `user_id` and `author` from leaking in the event the image is `hidden_from_users`
* Permission lockout
Lockout of all data if destroyed.
* Lockout on destroyed_content
Return 404 when `comment.destroyed_content`
* Refactored for neatness
2019-12-31 18:25:11 -05:00
byte[]
4c82c90cea
discard old parser
2019-12-31 14:56:38 -05:00
SomewhatDamaged
6ccb3f645a
Corrects failure and redirect to main page ( #12 )
...
This stops a bug I noticed when a slug that doesn't match is given. This will correctly 404 rather than redirecting to front page.
2019-12-31 09:01:14 -05:00
byte[]
f5bd8e7614
add deletion/duplicate handling to api
2019-12-31 00:10:50 -05:00
byte[]
1c6387e847
further fixes to the dnp template
2019-12-30 23:03:44 -05:00
byte[]
7503e48591
show hidden links on tag page, hidden status on profile page
2019-12-30 18:56:29 -05:00
byte[]
982adb9ba5
reindex image after replacement
2019-12-30 18:33:20 -05:00
byte[]
dd5d553c0d
include intensity data in image api response
2019-12-30 09:18:38 -05:00
byte[]
9be71b512d
load comment replies when the comment is hidden and when the image is merged
2019-12-30 08:58:56 -05:00
byte[]
bf5158b60e
poll votes admin
2019-12-30 08:32:41 -05:00
byte[]
4342978483
hides, vote tampering
2019-12-30 07:50:02 -05:00
byte[]
f443aa5386
fix a bunch of navigation weirdness
2019-12-26 17:43:32 -05:00
byte[]
81b37e42ff
add faster textile parser backend
2019-12-26 00:03:27 -05:00
byte[]
37836b2c30
more admin permissions
2019-12-25 16:10:56 -05:00
byte[]
567459bf48
avatars
2019-12-25 13:32:24 -05:00
byte[]
0981a1ba0b
dynamic config
2019-12-25 11:56:19 -05:00
byte[]
1990e384da
fix random endpoint and ensure search_records/4 is the only search_records exported
2019-12-24 18:09:35 -05:00
byte[]
620f316db8
break compile time dependencies for elasticsearch index usage
2019-12-24 16:14:42 -05:00
byte[]
15864ab742
api search controllers
2019-12-24 03:26:06 -05:00
byte[]
f847c560b1
prevent post deletion from jumping back to the first page
2019-12-23 09:25:11 -05:00
byte[]
1435149d32
admin badge user list
2019-12-23 09:23:25 -05:00
byte[]
991cab61bf
Revert "more aggressive preloading"
...
This reverts commit 556cd39afd
.
2019-12-22 22:13:36 -05:00
byte[]
556cd39afd
more aggressive preloading
2019-12-22 18:42:07 -05:00
Luna D
7caafd976e
re-add mod scratchpad by blatantly copy-pasting
2019-12-22 17:17:20 -05:00
byte[]
d2916e2a9b
various filters fixes
2019-12-22 16:47:16 -05:00
byte[]
b7ee2f9c50
render errors for invalid searches
2019-12-22 16:25:52 -05:00
byte[]
187178cdd4
account for the fact that the image index is delayed
2019-12-22 16:09:17 -05:00
byte[]
039db5a329
fix offset calculation
2019-12-22 16:05:41 -05:00
byte[]
4bf223fe1a
find index fix
2019-12-22 16:02:27 -05:00
byte[]
81b5a58fab
tag change mass reversion
2019-12-22 00:09:01 -05:00
byte[]
7abb5921b9
add order by statement to gallery list
2019-12-21 17:57:29 -05:00
byte[]
a3b3a38fef
galleries fixes
2019-12-21 17:15:16 -05:00
byte[]
878b923a20
copy comments when images are merged
2019-12-21 16:37:13 -05:00
byte[]
e1be291698
Merge remote-tracking branch 'origin/hide-staff-tools'
2019-12-21 14:48:50 -05:00
byte[]
823834e5c1
fix poll voting permissions
2019-12-21 10:22:13 -05:00
byte[]
9272cccf01
remove spurious inspect call
2019-12-21 10:15:05 -05:00
byte[]
3ff1b1ad6e
fix admin post/comment search
2019-12-21 10:14:01 -05:00
byte[]
9cef212ed2
fix warning in conversation controller
2019-12-21 09:46:58 -05:00
Joey
7ac0d821da
Add query to enable 'our conversations' functionality
2019-12-20 22:41:21 -06:00
byte[]
3a364bde61
explicitly halt the pipeline
2019-12-20 20:08:53 -05:00
byte[]
5e99152837
stop casting for now and just spawn off
2019-12-20 20:08:18 -05:00
byte[]
3cd51526d9
add related endpoint and controller
2019-12-20 18:02:03 -05:00
Luna D
7b5fd947f9
hide staff tools
2019-12-20 17:35:46 -05:00
byte[]
2ef4bdbbad
2fa layout
2019-12-20 16:29:29 -05:00
byte[]
b5f3f98b9c
fix bad match
2019-12-20 14:06:55 -05:00
byte[]
0d8e1c5ceb
auto ip bans
2019-12-20 13:58:06 -05:00
byte[]
be55b65063
preload deleted by in post list
2019-12-20 13:20:26 -05:00
byte[]
a7d9386af8
mod faves page
2019-12-20 12:26:38 -05:00
byte[]
08e95e0a01
include recent artwork in interactions
2019-12-20 11:55:16 -05:00
byte[]
8d5aad56f6
forum titles, better tag disjunction
2019-12-20 10:33:39 -05:00
byte[]
058f3840e4
less obtrusive title for image pages
2019-12-20 09:44:05 -05:00
byte[]
a03e0c3dde
add missing sort to notifications page
2019-12-20 09:35:49 -05:00
byte[]
48eda4ff5d
poll votes
2019-12-19 22:41:19 -05:00
byte[]
b4fbec1f66
more stringent on user indexing
2019-12-19 20:33:24 -05:00
byte[]
632ec78f0b
four large thumbs
2019-12-19 20:23:44 -05:00
byte[]
ad849e8bb8
readd ignored tag list
2019-12-19 20:23:44 -05:00
Luna D
3bf4372f0f
fix error in Profile.UserLinksController
2019-12-19 17:59:16 -05:00
byte[]
ae476b45d8
fix warnings
2019-12-19 15:13:15 -05:00
byte[]
091fafd5e2
add back sort option for oldest comments first
2019-12-19 15:11:44 -05:00
byte[]
3097411dd7
don't show comments from images which are hidden
2019-12-19 10:34:03 -05:00
byte[]
fe746dac0f
channel creation
2019-12-18 12:01:33 -05:00
byte[]
6d105ffc53
image uploader tampering
2019-12-17 13:53:41 -05:00
byte[]
d8b425bdf6
tag detail page
2019-12-17 13:12:58 -05:00
byte[]
e2496cd43b
mod profiles tag/source changes
2019-12-17 12:56:03 -05:00
byte[]
0fa10103f8
display mod notes on profiles and such
2019-12-17 12:29:18 -05:00
byte[]
10707cd92d
autoclose reports when reportable item is deleted
2019-12-17 11:45:22 -05:00
byte[]
fee56de1d7
use the actual assign
2019-12-17 01:52:15 -05:00
byte[]
8b220775bb
more admin tools
2019-12-17 00:44:24 -05:00
byte[]
c45a2a16d9
admin donations
2019-12-16 22:24:40 -05:00
byte[]
598f46215e
profile details
2019-12-16 21:26:43 -05:00
byte[]
02b7fdec31
convert rows to json
2019-12-16 18:14:22 -05:00
byte[]
8f445e49f9
batch tagging
2019-12-16 17:11:16 -05:00
byte[]
7ee4934e8f
page titles
2019-12-16 14:24:38 -05:00
byte[]
70b077e4e7
add reindex and delete buttons
2019-12-16 13:49:53 -05:00
byte[]
c70e2e48d1
more careful gallery search
2019-12-16 01:07:10 -05:00
byte[]
a74e7e9170
image mod tools
2019-12-16 00:25:06 -05:00
byte[]
f8431cb1c2
admin users and roles
2019-12-15 21:21:14 -05:00
byte[]
f5996dc084
fix order
2019-12-15 18:35:56 -05:00
byte[]
299e0cf923
admin mod notes
2019-12-15 17:52:51 -05:00
byte[]
e37ab2849e
badges and awards
2019-12-15 15:02:13 -05:00
byte[]
2a6b596765
admin forums
2019-12-15 12:54:27 -05:00
byte[]
b14dbf46b5
admin pages
2019-12-15 12:33:37 -05:00
byte[]
8a7ca9dbcb
don't try to redirect when there is no tag to redirect
2019-12-15 10:36:26 -05:00
byte[]
b1828ff68a
adverts
2019-12-14 21:54:16 -05:00
byte[]
bc6965485a
more straightforward usage of array_replace
2019-12-14 20:41:53 -05:00
byte[]
b62a723efe
count correctly
2019-12-14 18:12:00 -05:00
byte[]
482f1dfe5e
tag aliasing and image editing
2019-12-14 18:07:29 -05:00
byte[]
b7c8b95003
more aliasing prep
2019-12-14 17:07:43 -05:00
byte[]
993658ce0e
fix permissions
2019-12-14 16:23:35 -05:00
byte[]
4f3390f728
tag description and implication editing
2019-12-14 16:18:49 -05:00
byte[]
2eb39b43aa
fix staff buttons
2019-12-14 15:15:35 -05:00
byte[]
e5266db21e
add loader plugs
2019-12-14 14:46:50 -05:00
byte[]
ff854fce73
Merge remote-tracking branch 'origin/staff-tools'
2019-12-14 13:31:28 -05:00
byte[]
56ce4c74bc
site notices
2019-12-14 13:28:04 -05:00
Luna D
782baba324
topic hiding / restoring
2019-12-14 13:03:11 -05:00
Luna D
37be32f2b2
finish topic moving
2019-12-14 11:43:26 -05:00
Luna D
ffed45269b
unfinished topic moving
2019-12-14 11:10:33 -05:00
Luna D
375a5c6de1
topic stick, lock, total shitcode
2019-12-13 18:31:42 -05:00
byte[]
6337b23dbe
misc additions, 'ban this sucker' buttons
2019-12-13 14:26:43 -05:00
byte[]
fefb91644b
fingerprint bans
2019-12-13 14:06:08 -05:00
byte[]
642ded69a5
misc fixes
2019-12-13 13:52:57 -05:00
byte[]
304d5486d6
subnet bans
2019-12-13 13:50:35 -05:00
byte[]
4063f84b6b
user bans + ban messages for users
2019-12-13 12:14:34 -05:00
byte[]
aa4af5a2e6
admin dnp queue
2019-12-12 16:44:50 -05:00
byte[]
54be9dfa5d
routing, control flow and whitespace fixes
2019-12-11 23:41:33 -05:00
byte[]
6293c6d45d
Merge remote-tracking branch 'origin/staff-tools'
2019-12-11 23:22:03 -05:00
Joey
62d9908670
Add PR Secondary Role to staff page ( #5 )
2019-12-11 23:18:33 -05:00
Luna D
4e5a29e6fb
post hiding, destroying, and a few fixes
2019-12-11 18:58:00 -05:00
Luna D
5101bd31f2
comment destroying (css wip)
2019-12-11 17:21:14 -05:00
byte[]
0919792d53
actually filter the tags
2019-12-10 20:21:37 -05:00
byte[]
cb6d2dff78
add watcher count to tag on current user's profile
2019-12-10 19:59:43 -05:00
byte[]
d4d4ee0e2d
various fixes:
...
add base line-height: 1.5em
add appropriate placeholder color to inputs
show number of faves on fave index
link to correct location in watched images list on activity page
don't show pagination info when there are no results
don't create a source history entry if the source wasn't changed
2019-12-10 19:41:29 -05:00
Luna D
a2b3817d5a
comment hiding
2019-12-10 15:29:48 -05:00
byte[]
7d247b777f
admin user links
2019-12-09 20:21:49 -05:00
byte[]
16843ec216
use correct preview endpoint, ensure changes were made before updating stat
2019-12-09 14:22:58 -05:00
byte[]
eef6da6c78
always reindex
2019-12-08 23:53:57 -05:00
byte[]
687db1b98d
duplicate reports
2019-12-08 23:41:35 -05:00
byte[]
13d971a0c1
admin reports: claim, close
2019-12-08 22:16:13 -05:00
byte[]
1dfb6f877c
show ban list on profiles
2019-12-08 15:32:54 -05:00
byte[]
dc1cacbcc7
force authorization
2019-12-08 12:50:44 -05:00
byte[]
9f6ac9753d
fix warnings
2019-12-08 12:48:39 -05:00
byte[]
181931cf67
admin reports
2019-12-08 12:45:37 -05:00
byte[]
d7dd21c258
fix spoilering, hiding, watching from tag button
2019-12-08 11:13:15 -05:00
byte[]
d3972f728f
add missing gallery section
2019-12-08 11:00:46 -05:00
byte[]
7de9c69434
fill out stats page
2019-12-08 10:49:54 -05:00
byte[]
f8aa0a68df
add total back to search api
2019-12-08 10:03:29 -05:00
byte[]
ef0eee0105
validation fixes, make navigate endpoint use * as query if none given
2019-12-08 10:00:54 -05:00
byte[]
caaeb3ad2e
add parameter recoder
2019-12-08 01:00:53 -05:00
byte[]
2c8a5fd43d
add api tag controller
2019-12-08 00:04:45 -05:00
byte[]
f9f6518d97
image hiding
2019-12-07 23:53:18 -05:00
byte[]
c79dfd5b21
more comprehensive blankness check for personal titles and secondary roles
2019-12-07 21:30:47 -05:00
byte[]
6ce30ee27c
rely on query encoder to produce correct results
2019-12-07 21:04:58 -05:00
byte[]
0d48fc59b2
staff tools for ips
2019-12-07 20:49:28 -05:00
byte[]
c3f745ddee
display tag/source change counters on image pages
2019-12-07 18:41:31 -05:00
byte[]
cf28d6e915
fixes for private messages
2019-12-07 18:24:37 -05:00
byte[]
cf0818b9f9
oops
2019-12-07 17:08:24 -05:00
byte[]
823e44495d
add recent artwork to profile page
2019-12-07 17:07:53 -05:00
byte[]
a66c1e7e94
also delay image index page
2019-12-07 15:16:17 -05:00
byte[]
4c5fcdecb1
fix image index
2019-12-07 15:13:32 -05:00
byte[]
9a3ef4df30
fix can? usage
2019-12-07 11:52:27 -05:00
byte[]
13ad9e964d
add duplicate and deleted handling
2019-12-07 11:48:39 -05:00
byte[]
5cdc647208
add 'search posts' button to topic header
2019-12-07 11:32:04 -05:00
byte[]
ae189bafce
avatar uploading
2019-12-07 11:26:45 -05:00
byte[]
0d3555c3da
fix dupe report submission
2019-12-06 19:11:25 -05:00
byte[]
b89e9c464f
don't allow posting in locked topics
2019-12-06 18:25:05 -05:00
byte[]
ac103e15f3
add history link
2019-12-06 13:09:29 -05:00
byte[]
da16bd48d8
misc fixes
2019-12-06 13:06:54 -05:00
byte[]
b56485f13a
static page versions
2019-12-06 12:59:17 -05:00
byte[]
6329b01e38
hide/spoiler/watch from tag dropdown
2019-12-06 12:12:55 -05:00
byte[]
ae6e282424
post editing
2019-12-06 10:14:25 -05:00
byte[]
d22ab9aa58
tentative comment editing
2019-12-06 09:43:01 -05:00
byte[]
76de12d69d
post versions
2019-12-06 08:58:34 -05:00
byte[]
0c976851ed
fix various things
2019-12-05 22:05:21 -05:00
byte[]
9fc04b9b71
primitive history viewing
2019-12-05 21:46:51 -05:00
byte[]
2a338d86c7
allow users to edit their profile description
2019-12-05 19:36:45 -05:00
byte[]
463d86af5c
commission section on profile page
2019-12-05 18:11:15 -05:00
byte[]
19174a31ba
conn no longer necessary
2019-12-05 17:57:17 -05:00
byte[]
d5c438acdc
point provider url at the correct page
2019-12-05 17:56:20 -05:00
byte[]
8b6fef83e2
better tag info row
2019-12-05 16:57:59 -05:00
byte[]
a3187ae150
update stats counters when specific actions are taken
2019-12-05 14:23:26 -05:00
byte[]
3ab695cd3f
profile pages fixes
2019-12-05 13:32:53 -05:00
byte[]
87990fafe4
make sparklines actually work
2019-12-05 09:01:06 -05:00
byte[]
6882dd00e3
generate statistics sparklines
2019-12-05 08:55:49 -05:00
byte[]
19f9cf7db4
more filters
2019-12-05 00:02:53 -05:00
byte[]
98260fac9f
actually render comments
2019-12-05 00:00:41 -05:00
byte[]
3d94deb7e5
add more recents to profile page
2019-12-04 23:53:56 -05:00
byte[]
c070b515c0
channel subscriptions
2019-12-04 23:27:40 -05:00
byte[]
885488d40e
galleries
2019-12-04 23:12:49 -05:00
byte[]
c918e4f7ab
gallery show page
2019-12-04 19:53:31 -05:00
byte[]
dfe1e3b57e
gallery routes
2019-12-04 19:11:31 -05:00
byte[]
022b1008ab
add profile source changes
2019-12-04 17:56:13 -05:00
byte[]
015abf068b
add tag changes to tag, profile
2019-12-04 17:10:35 -05:00
byte[]
b36ef1dd23
commission item routes
2019-12-04 12:14:41 -05:00
byte[]
bbe7643174
rest of commission routes
2019-12-04 11:35:06 -05:00
byte[]
748086c01f
new commission endpoint
2019-12-04 10:00:41 -05:00
byte[]
0eaed4296e
set commission in conn
2019-12-04 09:32:43 -05:00
byte[]
8d9487e032
renest commissions page
2019-12-04 09:28:17 -05:00
byte[]
846c99e563
user links
2019-12-04 09:04:25 -05:00
byte[]
50759774f6
fix conversation controller
2019-12-04 08:27:35 -05:00
byte[]
3f6322ca81
user reporting
2019-12-04 08:25:10 -05:00
byte[]
c3d6a3817e
add reporting to conversations
2019-12-04 08:19:33 -05:00