podlove-publisher icon indicating copy to clipboard operation
podlove-publisher copied to clipboard

Social/Donations: Impossible to remove last entry for Social/Donations in Podlove Contributors

Open timpritlove opened this issue 2 years ago • 3 comments

Expected behavior

I want to be able to clear out all links in both the "Social" and "Donations" sections within any Podlove Contributor entry

Actual behavior

When all remaining links in either the "Social" or "Donations" sections are removed and the Contributor entry is saved, the last link is not actually removed from the database and returns when the entry is reloaded.

System information (see Podlove > Support menu)

timpritlove avatar May 05 '22 07:05 timpritlove

@dnkbln what's missing to rebuild the contributors UI (/wp-admin/admin.php?page=podlove_contributor_settings) in vue? Only writing APIs for social/donation stuff is missing, right?

eteubert avatar May 07 '22 09:05 eteubert

From my point of view the following points are missing:

  • donation (POST, PUT, DELETE)
  • social (POST, PUT, DELETE)

I try to add this routes next week.

dnkbln avatar May 07 '22 12:05 dnkbln

@dnkbln social & donation is the same thing in the database (social_service), just a different category. You'll see when you look at the schema :) My point being that they can share API endpoints.

Then you need endpoints for the social_contributorservice table, handling the assignments of the social service to each contributor.

eteubert avatar May 08 '22 09:05 eteubert