Skip to content

Conversation

@retiolus
Copy link
Contributor

@retiolus retiolus commented Nov 2, 2022

@di72nn
Copy link
Member

di72nn commented Nov 2, 2022

I guess I understated the complexity of this for a newcomer. Actually, even I spent an hour remembering how all this works and I'm still having trouble putting it all together :)

I'll probably have to implement it myself (because the codebase is more complex than it should have been), but here's some pointers so you can hack something usable for yourself.

The very minimum that needs to be done is a call like this:

        Article article = wallabagService.modifyArticleBuilder(articleId)
                .isPublic(true)
                .execute();

That would request the server to "share" the article. The returned article would contain the publicUid field.

The problem is that Android would only allow you to do that in a non-UI thread (because it's a "long" network operation). I guess the simplest way would be to use AsyncTask.

I'll try to implement it properly in the near future, but can't promise anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants