SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

#nsfw tag filter appears to be case-sensitive

Open axavio opened this issue 14 years ago • 3 comments

In my testing, it looks like posts with an #nsfw tag are grayed out initially, but posts with #NSFW are not affected.

Example: https://joindiaspora.com/posts/1091429 uses #NSFW

axavio avatar Dec 28 '11 19:12 axavio

Looks like this needs nsfw? method in app/models/status_message.rb method modifying to match based on a regex rather than a string. I'll give this a go, if that's OK with folks.

robhogg avatar Jan 02 '12 12:01 robhogg

Fixed bug in

https://github.com/robhogg/diaspora/blob/2565_nsfw_regex/app/models/status_message.rb

Single line change (line 71)

However haven't been able to run rake spec tests yet (don't have access to a working pod, and has been taking me time to resolve the dependencies on my laptop). If anyone wants to get this fix submitted in the meantime, please feel free.

robhogg avatar Jan 02 '12 17:01 robhogg

Have submitted a patch for this, which has been merged into the main branch, so should be fixed shortly:

https://github.com/diaspora/diaspora/pull/2580

robhogg avatar Jan 02 '12 22:01 robhogg