Hi, I came back! And I confirmed questions from you. I should have answered them at Gitea, GitHub and Matrix room, but if you have not replied yet, mention me again.
Now I’m enjoying development of Plume again.
Bug fix to prevent duplicate posts on timeline
Riker actors including search actor and remote fetch actor have executed their tasks many times ever. I fixed it so that they execute tasks only once.
Upserting remote posts and images
Plume have tried to save duplicated posts when it fetches remote instance’s post ever. Actually database’s constraint have prevented the duplication and Plume have logged
thread ‘pool-thread-#5’ panicked at ‘Article from remote user couldn’t be saved: Db(DatabaseError(UniqueViolation, “duplicate key value violates unique constraint "post_unique_slug"”))’
Now it upserts (updates or inserts) remote posts into local database and the log doesn’t appear.
This fix requires database migration. Run
plm migration run
before run the latest version.
Command to remove duplicated images
Image explosion problem (see posts of 2021-02-15 and 2021-02-22) was stopped but images have been remaining. I created a command to remove some of them. How to use it is:
For poeple who build Plume themselves
Assuming you use revision fe92d95f6c or earlier.
- Back up database and media
- Run
git fetch
- Check out remove-dup-images branch
- Run migration:
cargo run -p plume-cli --bin=plm -- migration run
- Run the command:
cargo run -p plume-cli --bin=remove-dup-images
For Docker users
- Back up database and media
- Pull remove-dup-images image:
docker pull plumeorg/plume:remove-dup-images
- Move to directory including
.env
for Plume - Run migration:
docker exec $CONTAINER plm migration run
- Run the command:
docker-compose exec plume remove-dup-images
I don’t indend to include remove-dup-image
command into stable release. This is a problem occuring between v0.6.0 and the next release. Stable releases are not affected from it.
Some other bugs were fixed, too.
Contribution wanted!
Some poeple might think to contribute to Plume but have no idea what to do. I introduce a thing to contribute easily.
@pullopen reported that Plume doesn’t show all posts at each author’s page. They should be shown with pagination. A pagination is very popular pattern of web development. Therefore you can contribute to this issue if you can write Rust and have experience of web development.
I have felt a modecum of relief by releasing remove-dup-image
. Next thing to do is preparing v0.7.0, I think.
Comments
May 27, 2024 03:40
By implementing these bug fixes and Pokerogue enhancements, you can significantly reduce the occurrence of duplicate posts on the timeline in your application, leading to a smoother
August 26, 2024 16:42
Plume development is good, and it provides us what we need, and there are a lot of people who want to get more details here. Also, by using these details, we can find the best website that provides the right solution that provides us what we need to know.
January 31, 2023 08:09
Thanks for the update and quick reply. I’ll be sure to keep an eye on this thread.
Mary Kay InTouch App
May 10, 2023 03:49
I POST a narrative to the /me/feed connection to publish it. I receive a success or an error response from Facebook. Thus far, so good. The API occasionally takes a long time and the connection times out. In that instance, I’m not sure if the request succeeded or failed uno online (i.e., perhaps the request never reached Facebook, or perhaps it succeeded but the result was never returned to me). How do you deal with this situation?
May 25, 2023 05:08
dependency
we have arrived at the decision that the MOTO X3M is the most viable solution. moto x3m
May 25, 2023 05:10
dependency
we have arrived at the decision that the MOTO X3M is the most viable solution. moto x3m
January 3, 2024 04:25
Thoroughly test the changes in a development or undertale yellow staging environment to ensure the fix works effectively. Once validated, deploy the fix to the production environment.