Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
34d3aea9
Commit
34d3aea9
authored
Apr 24, 2017
by
lain
Browse files
Add incoming xml fixtures.
parent
43d7a4b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
test/fixtures/incoming_note_activity.xml
0 → 100644
View file @
34d3aea9
<?xml version="1.0" encoding="UTF-8" ?>
<entry
xmlns=
"http://www.w3.org/2005/Atom"
xmlns:thr=
"http://purl.org/syndication/thread/1.0"
xmlns:activity=
"http://activitystrea.ms/spec/1.0/"
xmlns:georss=
"http://www.georss.org/georss"
xmlns:ostatus=
"http://ostatus.org/schema/1.0"
xmlns:poco=
"http://portablecontacts.net/spec/1.0"
xmlns:media=
"http://purl.org/syndication/atommedia"
xmlns:statusnet=
"http://status.net/schema/api/1/"
>
<activity:object-type>
http://activitystrea.ms/schema/1.0/note
</activity:object-type>
<id>
tag:gs.example.org:4040,2017-04-23:noticeId=29:objectType=note
</id>
<title>
New note by lambda
</title>
<content
type=
"html"
>
@
<
a href=
"
http://pleroma.example.org:4000/users/lain3
"
class=
"
h-card mention
">
lain3
<
/a
>
</content>
<link
rel=
"alternate"
type=
"text/html"
href=
"http://gs.example.org:4040/index.php/notice/29"
/>
<status_net
notice_id=
"29"
></status_net>
<activity:verb>
http://activitystrea.ms/schema/1.0/post
</activity:verb>
<published>
2017-04-23T14:51:03+00:00
</published>
<updated>
2017-04-23T14:51:03+00:00
</updated>
<author>
<activity:object-type>
http://activitystrea.ms/schema/1.0/person
</activity:object-type>
<uri>
http://gs.example.org:4040/index.php/user/1
</uri>
<name>
lambda
</name>
<link
rel=
"alternate"
type=
"text/html"
href=
"http://gs.example.org:4040/index.php/lambda"
/>
<link
rel=
"avatar"
type=
"image/png"
media:width=
"96"
media:height=
"96"
href=
"http://gs.example.org:4040/theme/neo-gnu/default-avatar-profile.png"
/>
<link
rel=
"avatar"
type=
"image/png"
media:width=
"48"
media:height=
"48"
href=
"http://gs.example.org:4040/theme/neo-gnu/default-avatar-stream.png"
/>
<link
rel=
"avatar"
type=
"image/png"
media:width=
"24"
media:height=
"24"
href=
"http://gs.example.org:4040/theme/neo-gnu/default-avatar-mini.png"
/>
<poco:preferredUsername>
lambda
</poco:preferredUsername>
<poco:displayName>
lambda
</poco:displayName>
<followers
url=
"http://gs.example.org:4040/index.php/lambda/subscribers"
></followers>
<statusnet:profile_info
local_id=
"1"
></statusnet:profile_info>
</author>
<link
rel=
"ostatus:conversation"
href=
"tag:gs.example.org:4040,2017-04-23:objectType=thread:nonce=f09e22f58abd5c7b"
/>
<ostatus:conversation>
tag:gs.example.org:4040,2017-04-23:objectType=thread:nonce=f09e22f58abd5c7b
</ostatus:conversation>
<link
rel=
"mentioned"
ostatus:object-type=
"http://activitystrea.ms/schema/1.0/person"
href=
"http://pleroma.example.org:4000/users/lain3"
/>
<link
rel=
"mentioned"
ostatus:object-type=
"http://activitystrea.ms/schema/1.0/collection"
href=
"http://activityschema.org/collection/public"
/>
<source>
<id>
http://gs.example.org:4040/index.php/api/statuses/user_timeline/1.atom
</id>
<title>
lambda
</title>
<link
rel=
"alternate"
type=
"text/html"
href=
"http://gs.example.org:4040/index.php/lambda"
/>
<link
rel=
"self"
type=
"application/atom+xml"
href=
"http://gs.example.org:4040/index.php/api/statuses/user_timeline/1.atom"
/>
<link
rel=
"license"
href=
"https://creativecommons.org/licenses/by/3.0/"
/>
<icon>
http://gs.example.org:4040/theme/neo-gnu/default-avatar-profile.png
</icon>
<updated>
2017-04-23T14:51:03+00:00
</updated>
</source>
<link
rel=
"self"
type=
"application/atom+xml"
href=
"http://gs.example.org:4040/index.php/api/statuses/show/29.atom"
/>
<link
rel=
"edit"
type=
"application/atom+xml"
href=
"http://gs.example.org:4040/index.php/api/statuses/show/29.atom"
/>
<statusnet:notice_info
local_id=
"29"
source=
"web"
></statusnet:notice_info>
</entry>
test/fixtures/user_full.xml
0 → 100644
View file @
34d3aea9
<author>
<activity:object-type>
http://activitystrea.ms/schema/1.0/person
</activity:object-type>
<uri>
http://gs.example.org:4040/index.php/user/1
</uri>
<name>
lambda
</name>
<link
rel=
"avatar"
type=
"image/png"
media:width=
"96"
media:height=
"96"
href=
"http://gs.example.org:4040/theme/neo-gnu/default-avatar-profile.png"
/>
<link
rel=
"avatar"
type=
"image/png"
media:width=
"48"
media:height=
"48"
href=
"http://gs.example.org:4040/theme/neo-gnu/default-avatar-stream.png"
/>
<link
rel=
"avatar"
type=
"image/png"
media:width=
"24"
media:height=
"24"
href=
"http://gs.example.org:4040/theme/neo-gnu/default-avatar-mini.png"
/>
<poco:preferredUsername>
Constance Variable
</poco:preferredUsername>
<poco:displayName>
lambadalambda
</poco:displayName>
</author>
test/fixtures/user_name_only.xml
0 → 100644
View file @
34d3aea9
<author>
<activity:object-type>
http://activitystrea.ms/schema/1.0/person
</activity:object-type>
<uri>
http://gs.example.org:4040/index.php/user/1
</uri>
<name>
lambda
</name>
</author>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment