Michael Vetter
be13e98fe7
Update my Copyright to 2020
2020-01-03 19:52:31 +01:00
Michael Vetter
5d7f2d1516
Add comments to avatar.c
...
And use better function names.
2019-12-23 20:56:38 +01:00
Michael Vetter
5170a2d542
Add string.h to avatars.c
...
Regards https://github.com/profanity-im/profanity/issues/1241
2019-12-19 20:04:19 +01:00
Michael Vetter
6c2fd1a8ca
Include stdlib.h in avatar.c
...
We use malloc() and free().
Fix https://github.com/profanity-im/profanity/issues/1241
2019-12-19 18:21:48 +01:00
Michael Vetter
9ac72980d1
xep-0084: add test stub file
2019-12-18 15:44:59 +01:00
Michael Vetter
6978c39538
xep-0084: make internal functions static
2019-12-18 15:31:34 +01:00
Michael Vetter
da3ee9539d
xep-0084: move id to avatar_metadata
2019-12-18 15:29:08 +01:00
Michael Vetter
fe41459d86
xep-0084: Add correct file extension
2019-12-18 15:20:07 +01:00
Michael Vetter
0ea1d3f85d
xep-0084: Normalize at out of image filename
2019-12-18 14:36:18 +01:00
Michael Vetter
2b6b165ed2
xep-0084: Improve help
2019-12-18 14:35:47 +01:00
Michael Vetter
795ae00acf
xep-0084:
...
So far we removed the avatar feature only after a succesful retrive in
avatar_request_item_by_id() before we are going to retrieve the actual
image.
We should remove it at every `/avatar barejid` call too so in case one
retrieval was unsucessful that we can call it again.
So far it seems like there is no other way to trigger getting the nodes
except announcing that we support the avatar feature.
2019-12-18 13:52:48 +01:00
Michael Vetter
64a86a1785
Fix header
2019-12-18 13:42:21 +01:00
Michael Vetter
3f58aba2bd
xep-0084: save avatars in own directory
2019-12-18 13:29:28 +01:00
Michael Vetter
f692d6d0e0
xep-0084: Make it work multiple times
2019-12-18 13:14:17 +01:00
Michael Vetter
c2aa585615
xep-0084: Download avatars
...
Proof of concept.
Needs error checking, a nice interface, general cleanup..
2019-12-18 12:50:09 +01:00
Michael Vetter
e3538cf739
xep-0084: Look for specific user and print ID
...
Add a `/avatar` command.
2019-12-18 11:24:50 +01:00
Michael Vetter
771dfab123
Start implementing XEP-0084
...
So far we just subscribe and get the IDs.
2019-12-18 10:17:10 +01:00