Skip to content

v0.4.0

Compare
Choose a tag to compare
@alimy alimy released this 23 Aug 00:18
· 676 commits to main since this release
88355b6

Added

  • add pprof feature support #327
  • use compiler profile-guided optimization (PGO) to further optimize builds. #327
  • frontend: re-add stars page embed to profile page. #339
  • simple support for user posts filter by style(post/comment/media/star). #345
    migration database first(sql ddl file in scripts/migration/**/*_create_view_post_filter.up.sql):
    CREATE VIEW p_post_by_media AS SELECT post.*FROM (SELECT DISTINCT post_id FROM p_post_content WHERE (TYPE=3 OR TYPE=4 OR TYPE=7 OR TYPE=8) AND is_del=0) media JOIN p_post post ON media.post_id=post.ID WHERE post.is_del=0;
    CREATE VIEW p_post_by_comment AS SELECT P.*,C.user_id comment_user_id FROM (SELECT post_id,user_id FROM p_comment WHERE is_del=0 UNION SELECT post_id,reply.user_id user_id FROM p_comment_reply reply JOIN p_comment COMMENT ON reply.comment_id=COMMENT.ID WHERE reply.is_del=0 AND COMMENT.is_del=0) C JOIN p_post P ON C.post_id=P.ID WHERE P.is_del=0;
  • add user highlight tweet support include custom tweet set to highlight and list in user/profile page.
  • add cli subcommand to start paopao-ce serve or other task. #354
  • add Followship feature . #355
    migration database first(sql ddl file in scripts/migration/**/*_user_following.up.sql):
    DROP TABLE IF EXISTS p_following; 
    CREATE TABLE p_following (ID BIGSERIAL PRIMARY KEY,user_id BIGINT NOT NULL,follow_id BIGINT NOT NULL,is_del SMALLINT NOT NULL DEFAULT 0,created_on BIGINT NOT NULL DEFAULT 0,modified_on BIGINT NOT NULL DEFAULT 0,deleted_on BIGINT NOT NULL DEFAULT 0); 
    CREATE INDEX idx_following_user_follow ON p_following USING btree (user_id,follow_id);

Changed

  • change man content width to 600px and optimize tweet/comment/replay text length. #333
  • optimize embed web ui to paopao execute binary file logic. #354
    # embed web ui to execute file default
    make build 
    # use slim model to disable embed web ui to exectute file
    make build TAGS='slim embed'
  • frontend: optimize user profile page route path to domain/#/u/?s=username. [&c857142](c857142
  • change the Friendship feature and Followship feature as builtin feature. #362
  • deprecated/remove Lightship feature. #362
  • optimize Followship feature allow follow/unfollow user in follow page. &fd5e54b
  • use Meilisearch as default search in docker-compose.yaml.

Fixed

  • fixed JWT valide error whent get user by id failed.&51fd972

备注:发布版本中,使用如下命令构建paopao-ce: (go version go1.21.0 darwin/amd64)

./build-release.sh && ./build-image.sh

发布的二进制文件中只测试了paopao-ce-darwin_amd64,其余平台的未亲测,如有问题,请使用源码在自己平台下自行构建。

您可以使用如下命令启动一个测试实例尝鲜:

docker compose up -d
# visit http://localhost:8008  👀 paopao-ce
# visit http://localhost:8001  👀 RedisInsight
# visit http://localhost:8080  👀 phpMyAdmin