evazion
b1af644f67
dmails: send automated dmails from Danbooru.config.system_user.
...
Sends automated dmails from `Danbooru.config.system_user`, rather than
whichever user is performing the action happens to be (usually User.admins.first).
Also adds a notice in the view that the dmail was automated.
2017-02-23 22:51:17 -06:00
evazion
1400f64338
dmails_controller.rb: convert to strong params.
2017-02-23 22:51:17 -06:00
evazion
d852f98e4f
/dmails: remove unused search[owner_id] param.
...
/dmails is restricted to viewing dmails for CurrentUser only (due to
Dmail.visible in the index action). Remove owner_id from subnavbar links
in /dmails, and don't support it in /dmails?search[owner_id], since it
doesn't actually do anything.
Also removes related dead methods and fixes tests that didn't test owner_id properly.
2017-02-23 22:51:17 -06:00
evazion
6de350cd7d
dmail.rb: remove dead new_blank method.
2017-02-23 22:51:17 -06:00
evazion
35bf995276
dmail.rb: make to_name= use User.name_to_id cache.
2017-02-23 22:51:17 -06:00
evazion
2736d31c67
dmail.rb: validate only on creation.
...
to/from/title/body don't need to be revalidated after creation since
they never change.
2017-02-23 22:51:16 -06:00
r888888888
e80096bf19
fixes #2850 : NoMethodError exception when sending DMail
2017-01-20 12:37:43 -08:00
Albert Yi
bfa1ac63a4
fixes #2677 : secure way of sharing dmails
2016-12-05 16:28:05 -08:00
Albert Yi
79842f7a3b
restrict min level constraints for forum topics to mod+admin and restrict options based on current user's level. check privileges for visiblity in forum posts and topics. deprecate serializable_hash (undocumented, internal) for as_json, refactor to use hidden_attributes and method_attributes #2658
2016-10-25 15:05:55 -07:00
Type-kun
a718560554
Initial support for #2677
2016-09-17 16:42:00 +05:00
r888888888
3df9f0cdf6
fix unit tests
2015-09-23 12:13:14 -07:00
r888888888
341b29ce41
fix tests
2015-08-18 17:40:53 -07:00
r888888888
b31c63b261
fixes #2477 : Better way to notify when messages get filtered
2015-08-13 17:16:24 -07:00
Toks
42ad3b8d3c
#2326 fix has_mail being set by wrong copy
2014-12-12 23:59:26 -05:00
r888888888
cee524ec48
fixes #2326
2014-12-12 17:36:48 -08:00
r888888888
2b5ce48d5c
fixes #2230
2014-11-19 21:28:26 -08:00
r888888888
f65691b5e6
fix tests
2014-06-18 16:51:55 -07:00
r888888888
fad0ab7c93
fixes #2133
2014-04-16 17:43:34 -07:00
Toks
421adfc65c
Add unread dmail search option
2014-03-29 16:28:55 -04:00
Toks
3f869e8582
Fix case where user's has_mail could be erroneously set to false
2014-03-26 16:48:53 -04:00
r888888888
d58a150756
potential fix for #1428
2014-03-06 18:56:51 -08:00
r888888888
10516c9834
fixes #2100
2014-02-21 13:46:45 -08:00
Toks
adbe269aea
fixes #1507
2013-08-27 00:39:07 -04:00
Toks
d527f822f2
fixes #1917
2013-08-07 20:25:51 -04:00
Toks
ecfcebe30a
Add support for wildcard searches in text fields
...
#1663
2013-07-20 16:51:55 -04:00
Toks
395f3d1342
hide index fields from api; closes #1739
2013-06-23 12:12:30 -04:00
albert
85a5fcc658
fixes #1133
2013-03-29 16:45:59 -04:00
小太
cba839ba76
Kill trailing whitespace in ruby files
2013-03-19 23:10:10 +11:00
albert
2338f004eb
refactored tsquery sql to use rails escaping mechanisms
2013-03-07 16:34:12 -05:00
albert
dba5fd23e1
fixes #778
2013-03-06 20:13:55 -05:00
albert
23f9c2396f
fixes #729
2013-03-03 16:05:47 -05:00
albert
68ac05e31c
fixes #705
2013-03-02 22:45:15 -05:00
albert
e0fdda3103
fixes to model searches
2013-02-19 12:27:17 -05:00
albert
8749c43b3e
refactored search
2013-01-10 17:45:52 -05:00
albert
13271e9bf5
work on refactoring search
2013-01-08 15:53:21 -05:00
albert
80f34d08d9
revert default scope change
2013-01-07 17:24:03 -05:00
albert
040059c491
add default scopes to every model
2013-01-07 17:12:43 -05:00
albert
2333818f4f
fixes #304
2012-02-24 17:39:55 -05:00
albert
2c16cf881e
fixes #288
2012-01-20 17:19:08 -05:00
albert
483da433aa
fix visibility criterion for dmails
2012-01-15 13:28:00 -05:00
albert
ec22f95136
fixes #257
2012-01-14 14:58:33 -05:00
albert
a3821d0397
fixes #250
2012-01-13 18:28:01 -05:00
albert
37e2d36e8b
fix for #219
2012-01-06 19:24:20 -05:00
albert
c478eb33b6
* Additional effects
...
* Fixed flash pngs
* Fixed dmail search links
2011-11-03 17:42:40 -04:00
albert
1e49a00150
fixes to dmail ui
2011-10-16 01:58:16 -04:00
albert
58c3d2af13
fixing tests
2011-07-16 19:20:02 -04:00
albert
46164eab4f
finished dmails and favorites functional tests
2010-12-05 22:27:45 -05:00
albert
f8ab736677
fixed tests
2010-11-19 17:20:13 -05:00
albert
c6304c6e08
views
2010-11-19 16:24:17 -05:00
albert
5610731b35
sync
2010-08-18 18:42:33 -04:00