This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix default assumed object type (note->activity), make stream entry threaded? check aware of orphaned replies
closed-social-glitch-2
Eugen Rochko
7 years ago
parent
0634e8dee5
commit
5f737c7228
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/stream_entry.rb
+1
-1
app/services/process_feed_service.rb
+ 1
- 1
app/models/stream_entry.rb
View File
@ -39,7 +39,7 @@ class StreamEntry < ApplicationRecord
end
def
threaded?
verb
==
:favorite
||
object_type
==
:comment
(
verb
==
:favorite
||
object_type
==
:comment
)
&&
!
thread
.
nil?
end
def
thread
+ 1
- 1
app/services/process_feed_service.rb
View File
@ -214,7 +214,7 @@ class ProcessFeedService < BaseService
def
object_type
(
xml
)
xml
.
at_xpath
(
'./activity:object-type'
)
.
content
.
gsub
(
'http://activitystrea.ms/schema/1.0/'
,
''
)
.
to_sym
rescue
:
note
:
activity
end
def
verb
(
xml
)
Write
Preview
Loading…
Cancel
Save