Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mastofe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pleroma
mastofe
Commits
6b666db1
Commit
6b666db1
authored
8 years ago
by
Eugen
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #505 from ineffyble/fix/issue-503
Call uniq on the string version of mb_chars tags - fixes #503
parents
1aae0cfc
8f21f552
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/services/process_hashtags_service.rb
+1
-1
1 addition, 1 deletion
app/services/process_hashtags_service.rb
with
1 addition
and
1 deletion
app/services/process_hashtags_service.rb
+
1
−
1
View file @
6b666db1
...
...
@@ -4,7 +4,7 @@ class ProcessHashtagsService < BaseService
def
call
(
status
,
tags
=
[])
tags
=
status
.
text
.
scan
(
Tag
::
HASHTAG_RE
).
map
(
&
:first
)
if
status
.
local?
tags
.
map
{
|
str
|
str
.
mb_chars
.
downcase
}.
uniq
.
each
do
|
tag
|
tags
.
map
{
|
str
|
str
.
mb_chars
.
downcase
}.
uniq
{
|
t
|
t
.
to_s
}
.
each
do
|
tag
|
status
.
tags
<<
Tag
.
where
(
name:
tag
).
first_or_initialize
(
name:
tag
)
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment