Albert Yi
b999fc86ea
mixpanel fixes
2018-10-22 16:54:38 -07:00
Albert Yi
5097babfaa
add opt out for mixpanel tracking
2018-10-22 16:01:39 -07:00
r888888888
ee3b8933d2
tweak social links
2018-10-20 19:38:32 -07:00
Albert Yi
c301c316bf
fix js error if there's no news update
2018-10-19 10:28:24 -07:00
Albert Yi
a6b00b3ff3
fixes #3921
2018-10-16 15:01:39 -07:00
Albert Yi
3fbe1629e0
remove delete-on-autocomplete functionality
2018-10-15 14:21:19 -07:00
evazion
4fd949ca8d
news updates: fix news updates not staying hidden.
...
ref: https://danbooru.donmai.us/forum_posts/151011
Bug: `Cookie.get("news-ticker") === key` always returned false because
the cookie was a string but the key was an integer.
Regressed in f72b32b27b after switching from `==` to `===`.
2018-10-02 13:28:41 -05:00
evazion
9ac59aeadd
comments.js: clean up comment quoting.
...
Replace Comment.quote with a remote new.js.erb call.
2018-09-29 20:42:38 -05:00
evazion
75232c0cd4
comments.js: clean up unnecessary code.
...
* Remove Dtext import (no longer used).
* Remove create.js.erb template (not used).
* Don't hide `#hidden-comments-notice-for-...` (didn't exist).
2018-09-29 20:42:38 -05:00
evazion
a5438aaf37
Fix dtext preview button to use event delegation.
...
Fixes the dtext preview button and dtext expandable to work with
dynamically loaded dtext forms.
2018-09-26 20:01:49 -05:00
evazion
f886f2fdb3
posts/show: load flag/appeal/replacement dialogs via ajax ( #3922 ).
2018-09-26 20:01:14 -05:00
evazion
b4cf423058
Clean backtraces in uploads/show, static/error.json.
2018-09-23 20:08:13 -05:00
evazion
f917b83d6f
/artists: drop deprecated search syntax, add regex search for names.
...
Drop support for the following pseudo-metatags in the Name field in the
artists search form:
* name:<name>
* other:<other name>
* group:<group name>
* status:banned
* status:active
* http://www.example.com
Instead, make the Name field do a wildcard search against the artist
name, group name, or other names. If the query looks like `/regex/`,
then do a regex search against any of these names.
/artists?search[name] now does a literal exact match and
/artists?search{any_name_matches] does the above wildcard/regex search.
2018-09-21 20:51:53 -05:00
evazion
29cdaddd86
PostSetPresenters::Post#related_posts: clean up metatag parsing ( #2894 ).
...
* Fix `#related_tags` to use `Tag.has_metatag?`.
* Fix Tag::SUBQUERY_METATAGS and Tag::METATAGS to be arrays instead of regexes.
2018-09-20 19:23:47 -05:00
evazion
823f78af49
autocomplete.js: add data attrs on autocomplete results ( #3902 ).
2018-09-17 18:18:33 -05:00
evazion
bbb233b93f
css: remove unused or redundant rules.
2018-09-14 13:31:59 -05:00
evazion
0aecc9d34c
css: fix 020_base.scss getting imported twice.
...
This import caused all in the rules in 020_base.scss to be included
twice in the final stylesheet.
2018-09-14 10:31:30 -05:00
evazion
a5ef97a608
css: remove obsolete/unused mixins.
2018-09-14 00:34:34 -05:00
evazion
42f97bf3e5
Fix external link icons ( #3890 ).
2018-09-14 00:21:08 -05:00
evazion
091c4c97a8
Fix #3895 : 'Related tags' not appearing automatically on uploads page.
2018-09-12 19:26:59 -05:00
evazion
10ca4dd3ad
artists: replace artist finder with fetch source data.
...
* On posts, automatically trigger "Fetch source data" when clicking the
Edit tab, instead of triggering the artist finder button. This way we
find both the artist and the translated tags in one ajax call.
* Remove the "Artist" finder button next to the source field. This isn't
necessary given that "Fetch source data" finds the artist itself.
* Remove the /artists/finder.json API endpoint. This is no longer used
after removing the "Artist" finder button.
2018-09-11 20:09:25 -05:00
evazion
8915437b4a
Fix #3439 : Identify external links in DText.
2018-09-11 15:10:59 -05:00
evazion
056fe365f2
Render "Fetch source data" box html server-side.
...
Instead of calling /sources.json and rendering the "Fetch source data"
box client-side in Javascript, call /sources.js so we can render the
html server-side.
2018-09-08 15:42:16 -05:00
evazion
22c27f8910
post previews: fix css for captioned post previews.
...
Captioned post previews (previews with the pool name, similarity, or
size beneath) need to have `height: auto` set, otherwise they'll default
to `height: 154px` (just enough for the image) and the caption won't be visible.
2018-09-06 20:44:47 -05:00
evazion
950fcdb7b2
uploads: add new source:<url> dupe check ( fix #3873 )
...
* On the /uploads/new page, instead of just showing a "This post has
probably already been uploaded" message, show the actual thumbnails of
posts having the same source as what the user is trying to upload.
* Move the iqdb results section up top, beside the related posts section.
2018-09-06 20:43:20 -05:00
evazion
7ecf6f1ba2
Fix link colors inside dialogs, autocomplete.
...
ref: f9f0da054 , https://github.com/r888888888/danbooru/issues/3791#issuecomment-410378703 .
2018-09-05 23:48:51 -05:00
Albert Yi
4b9f3e384f
include more messaging for user feedback
2018-09-05 16:32:18 -07:00
Albert Yi
f9f0da0543
fix link colors in notices
2018-09-05 14:04:46 -07:00
Albert Yi
a41d006380
fix pool ordering js ( #3869 ), fix forum topic tests
2018-09-05 12:01:59 -07:00
evazion
3bed5f3cf9
Fix #3867 : Add namespaces to all Javascript events.
2018-09-04 12:26:18 -05:00
evazion
c03af7f563
posts.js: remove dead search dropdown code.
2018-09-04 12:26:18 -05:00
evazion
1bfe763182
related tags: remove dead #artist-tags-container code.
...
Dead since 78900c4d3 .
2018-09-03 19:13:09 -05:00
BrokenEagle
4c85cf4a32
Fix #3853 : Blacklist minscore is broken.
2018-08-30 17:42:21 -05:00
Albert Yi
64c3bc18a7
rename ref and url fields to upload_source and upload_referer_url
2018-08-29 16:46:04 -07:00
Albert Yi
692c3ddac8
ignore #post_source when autorunning the iqdb search ( #3851 )
2018-08-29 16:20:36 -07:00
Albert Yi
ed050e74b9
update iqdb source in uploads js ( #3851 )
2018-08-29 15:15:03 -07:00
evazion
cd11ae6008
upload page: fix fetch source data when not using bookmarklet.
...
* #upload_referer_url no longer exists, just using #ref works.
* #upload_source defaults to params[:url], so using it instead of #url still works.
ref: https://github.com/r888888888/danbooru/issues/3850#issuecomment-417116385
2018-08-29 16:54:03 -05:00
Albert Yi
ab220f295c
search for source/referer in additional elements
2018-08-29 14:04:10 -07:00
evazion
a8ae4d3f36
Fix #3849 : Forum Button in the topbar has broken css
2018-08-29 14:29:15 -05:00
Albert Yi
66e413b540
Adds fuzzy string matching and prefix matching
2018-08-28 16:41:52 -07:00
evazion
4e1d76da81
html: add controller & action attributes to <body> tag ( #3844 ).
2018-08-26 16:02:06 -05:00
evazion
b98bc26397
nav menu: add html ids to main menu nav links ( #3844 ).
2018-08-26 13:12:41 -05:00
evazion
8ccc238791
nav menu: remove duplicate "More »" link.
...
Remove a second hidden "More »" link from the nav menu. This was
leftover code first added in f2f524b87 and later reverted in 68161f7b8 .
2018-08-26 13:11:26 -05:00
evazion
f9a39c9fbe
Fix #3840 : "Q" moves cursor to beginning of search bar.
2018-08-24 20:31:37 -05:00
Albert Yi
54363ffecf
Merge pull request #3827 from evazion/fix-3709
...
Fix #3709 : Provide OR capability for blacklist items
2018-08-23 13:54:30 -07:00
evazion
4f02c7f70a
search: add status:modqueue, status:unmoderated metatags.
...
* status:modqueue = ~status:pending ~status:flagged
* status:unmoderated = status:modqueue -user:self -approver:self -disapproval:any
2018-08-23 14:48:39 -05:00
evazion
89c4fe150a
search: add disapproval:<any|none|disinterest|poor_quality|breaks_rules> metatag.
2018-08-23 14:08:02 -05:00
evazion
db23e06a4f
comments.js: remove unused import.
2018-08-22 20:29:51 -05:00
evazion
8890baaf42
Fix #3821 : Blacklist and mod queue.
2018-08-22 18:14:13 -05:00
evazion
d6eecb5466
blacklists: truncate display of long blacklist rules.
2018-08-21 23:33:33 -05:00